-- GENERATED SPELL FOR [Mojo the Twisted] --


function spell0_8296(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20825,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8296', 3000, 1)
end

function spell1_8296(pUnit, Event) --@Shadow Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(17228,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8296', 580, 1)
end

function Sorts_8296(pUnit, Event)
local choix_sorts_8296 = math.random(0, 1)
if choix_sorts_8296 == 0 then
pUnit:RegisterEvent('spell0_8296', 1, 1)
end
if choix_sorts_8296 == 1 then
pUnit:RegisterEvent('spell1_8296', 1, 1)
end
end

function mob8296_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8296', math.random(1500, 3000), 1)
end

function mob8296_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8296_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8296_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8296, 1, 'mob8296_Action')
RegisterUnitEvent(8296, 2, 'mob8296_Leave')
RegisterUnitEvent(8296, 3, 'mob8296_Kill')
RegisterUnitEvent(8296, 4, 'mob8296_Die')
